Skip to content

fix: prefer compatible advertised model routes - #148

Merged
BrainerVirus merged 1 commit into
mainfrom
fix/prefer-compatible-endpoints
Sep 29, 2026
Merged

BrainerVirus merged 1 commit into
mainfrom
fix/prefer-compatible-endpoints

Conversation

@BrainerVirus

@BrainerVirus BrainerVirus commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

When a model advertises both Chat Completions and Responses, prefer Chat Completions. The exact saved OpenCode V2.0.18 session error was a response.output_item.added event whose function_call item lacked the required arguments string while DeepSeek V4.1 Flash #max was calling the shell tool. The earlier annotation-event description was incorrect.

This shared route policy applies by advertised endpoints, not by a DeepSeek model ID. In the current 84-model catalog, 66 entries advertise Chat and Responses, 10 advertise Messages only, and 8 advertise Chat only; no entry is Responses-only. Other models' Responses tool-call streams were not individually validated.

Validation after release:

  • The installed local V2.0.18 binary loaded the working-tree plugin from an isolated file:// config and completed the same model/variant shell-tool flow (TOOL_CALL_SMOKE_OK).
  • Official OpenCode V1.18.30 and V2.0.18 Docker images, also using the working-tree plugin, completed that tool call.
  • CI passed on this PR; the exact old event remains captured in the provided session, not newly reproduced.

@BrainerVirus
BrainerVirus merged commit 1b4d9fb into main Sep 29, 2026
5 checks passed
@BrainerVirus
BrainerVirus deleted the fix/prefer-compatible-endpoints branch September 29, 2026 01:53
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.10.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant